package ch.fhnw.qualiscan.application.pages;

import ch.fhnw.qualiscan.application.components.LoginFormBox;
import ch.fhnw.qualiscan.application.components.SignUpBox;
import ch.fhnw.qualiscan.core.Page;
import eu.livotov.tpt.i18n.TM;
import eu.livotov.tpt.i18n.TranslatableCustomLayout;

/**
 * 
 * @author Kevin Mettenberger, Benjamin Groehbiel
 *
 */
@SuppressWarnings("serial")
public class Start extends Page {
	
	@Override
	public void buildLayout() {
	    addComponent(textHelper.h1(TM.get("start.title")));
	    //addComponent(textHelper.p(TM.get("start.desc")));
	    
	    TranslatableCustomLayout customLayout = new TranslatableCustomLayout("start-page");
	    addComponent(customLayout);
	}

	@Override
	public void setNeededPermissions() {
		
	}

	@Override
	public void initComponents() {
		componentLib.userLoggedOut();
		components.add(new LoginFormBox());
		components.add(new SignUpBox());
	}

	@Override
	public void thirdParameterChanged(String thirdParameter) {

	}

	@Override
	public void initModelsAndHelpers() {

		
	}

}
